<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?><!DOCTYPE html><html lang="en">
	<head>
		<!--加载header文件-->
		<?php
		include_once 'public/views/header.php';
		?>
		<?php
		include_once 'public/home/html/treeView.php';
		?>
		<?php
		include_once 'public/home/html/laydate.php';
		include_once 'public/home/html/faltSelect.php';
		?>
		<link rel="stylesheet" href="public/css/edit.css" />
		<script src="cust/js/qualityEdit.js"></script>
		<script src="public/js/cus_modal.js"></script>
		<script src="public/js/jquery.uploadfile.min.js"></script>
		<script src="cust/js/goodsUpload.js"></script>
		<link href="public/css/uploadfile.css" rel="stylesheet">
		<style>
			.tree{
				width:100%;
				/* padding:10px 20px 10px 20px;
				margin:20px 0 20px 0; */
				/*border:1px solid #bbb;*/
				border-radius: 5px;
				/*border:none!important;*/
			}
			.checkbox{
				height:30px;
				/*line-height: 30px;*/
				/*border:1px solid #aaa;*/
				margin:0px!important;
				padding-left: 0px!important;
				min-height: 0px!important;
			}
			label{
				font-size: 14px;
			}
			.yn-tree-li{
				min-height:20px!important;
				padding-top: 0px!important;
			}
			.yn-tree-input {
				width:15px;
				height:15px;
				border:1px solid #438EB9!important;
			}
			.shrink{
				min-height:20px!important;
				padding-top: 0px!important;
			}

		</style>
	</head>
	<body>
		<div class="container" id="ttttt">
			<div class="row">
				<input type="hidden" id="modal_title" value="<?=$title ?>" />
				<input type="hidden" id="modal_height" value="450" />
				<form id="editForm">
					<input type="hidden" id="id" name="id" value="<?php if($detail['id']){echo $detail['id'];}else{echo '0';}?>" />
					<table class='edit_table'>
						<tr>
							<th>报告年份</th>
							<td><input type="text" name='years' value="<?=estr($detail, 'years') ?>" id="years" placeholder="请选择报告年份"/></td>						
						</tr>
						<!-- <tr>
							<th>商贸学院需听课老师</th>
							<td> 
								<textarea rows="3" id="teacher" style="width:60%;"></textarea>
							   <button class="searchButton" style="width: 31%;"><i class="icon-search searchForm-title-icon"></i>选择需听课老师</button>

							</td>						
						</tr> -->
						<!-- <tr>
							<th>起始年月</th>
							<td><input type="text" name='start_month' value="<?=estr($detail, 'start_month') ?>" id="start_month" placeholder="请选择起始年月"/></td>						
						</tr> -->
						<!-- <tr>
							<th>结束年月</th>
							<td colspan="3">
							<input type="text" name='end_month' id="end_month"  value="<?=estr($detail, 'end_month') ?>" placeholder="请选择结束年月"/>
							</td>
						</tr> -->
					</table>
				</form>
				
			</div>
		</div>
	</body>
	<script>

		$(function(){
			// fullDialogModal();

			$(".searchButton").click(function(){
				showDialogModal("Admin/QualityReport/chooseTeacher","500","600");
			})

			
		})


    //在子页面中调用此方法
	function DataPerson( person1data,person2data){
        //这里判断从子页面传过来的值不为空
        if( (typeof person1data!= 'undefined' && person1data!= null && person1data!= '')&&(typeof person2data!= 'undefined' && person2data!= null && person2data!= '') ){
        //  $('#teacher').attr('value',person1data)
        //  $('#teacher').attr('value',person2data)
		$('#teacher').val(person1data);
		$('#teacher').text(person1data);
        }else{
            alert('error');
        }  
    }

	</script>
</html>
